package gameObjects;

import java.util.Vector;

import logic.Coords2D;

public class StartPointCollection {
	private Vector<Coords2D> startPoints;	
	public StartPointCollection()
	{
		startPoints=new Vector<Coords2D>();
	}
	
	public void setVector(Vector<Coords2D> k)
	{
		startPoints=k;
	}
	
	public void  removeByCoords(int x, int y)
	{
		for(int j=0; j<startPoints.size();j++){
			if(startPoints.get(j).getX()==x && startPoints.get(j).getY()==y){
				startPoints.remove(j);
				break;
			}
		}
	}
	
	public Vector<Coords2D> getVector()
	{
		return startPoints;
	}
	
	public Coords2D getFirst()
	{
		Coords2D sp = startPoints.get(0);
		startPoints.remove(0);
		return sp;
	}
}
